<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>我的供应</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="../../../../component/elementUI/index.css" />
    <link rel="stylesheet" href="../../../../style/wangeditor.css" />
    <link rel="stylesheet" href="../../../../style/index.css" />
  </head>

  <body>
    <div id="app" v-cloak>
      <el-form :inline="true" :form="form">
        <el-form-item>
          <el-button type="primary" @click="Add">添加</el-button>
        </el-form-item>
        <el-form-item>
          <el-input
            v-model.trim="form.SQL_SerialNumber"
            clearable
            placeholder="请输入"
          />
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSerach">查询</el-button>
        </el-form-item>
      </el-form>
      <el-table
        :data="wdgy"
        stripe
        border
        row-key="id"
        height="calc(100vh - 140px)"
        style="width: 100%"
        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
      >
        <el-table-column
          align="center"
          type="index"
          label="序号"
          width="50"
        ></el-table-column>
        <el-table-column
          width="150"
          align="center"
          prop="QuotationID"
          label="供应单编号"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="Provider_Enterprise_SerialNumber"
          label="供应企业"
          width="250"
        ></el-table-column>
        <el-table-column
          prop="Show_image"
          width="140"
          align="center"
          label="品种图片"
        >
          <template v-slot="{row}">
            <el-image
              fit="contain"
              :src="BASE_IMG + row.Show_image"
              :preview-src-list="[BASE_IMG + row.Show_image]"
              style="width: 100px; height: 100px"
            ></el-image>
          </template>
        </el-table-column>
        <el-table-column
          align="center"
          prop="VarietyName"
          label="品种"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="GradeName"
          label="等级"
        ></el-table-column>

        <el-table-column
          align="center"
          prop="UnitPrice"
          label="单价"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="SupplyQuantity"
          label="供应量"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="Unit"
          label="单位"
          width="80"
        ></el-table-column>
        <el-table-column
          width="100"
          align="center"
          prop="QuotationDate"
          label="发布日期"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="Origin"
          label="产地"
        ></el-table-column>
        <el-table-column
          width="100"
          align="center"
          prop="Shipping_Method"
          label="提货方式"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="Self_Pickup_Location"
          label="提货点/发货地"
          width="150"
        ></el-table-column>
        <el-table-column
          prop="Row_Status
        "
          label="发布状态"
          width="100"
          :filters="[{ text: '已取消', value: '1' }, { text: '进行中', value: '0' }]"
          :filter-method="filterTag2"
          filter-placement="bottom-end"
        >
          <template slot-scope="scope">
            <el-tag
              :type="scope.row.Row_Status
            === '1' ? 'danger' : 'success'"
              disable-transitions
              >{{scope.row.Row_Status == 0 ? '进行中' : '已取消'}}</el-tag
            >
          </template>
        </el-table-column>
        <el-table-column label="操作" width="100">
          <template slot-scope="scope">
            <!-- <el-button @click="handleClick(scope.row)" type="text" size="medium"
              >查看</el-button
            > -->
            <el-button
              :disabled="jytype(scope.row)"
              type="danger"
              size="medium"
              @click="bjshanchu(scope.$index, scope.row)"
              >取消</el-button
            >
          </template>
        </el-table-column>
      </el-table>
      <el-pagination
        @current-change="ghandleCurrentChange"
        :page-size="15"
        background
        layout="prev, pager, next"
        :total="gotal"
      >
      </el-pagination>
      <!-- <el-pagination
        style="margin-top: 5px"
        background
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="form.page"
        :page-sizes="[15, 20, 30, 50]"
        :page-size="form.limit"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total"
      >
      </el-pagination> -->
    </div>
    <script
      type="text/javascript"
      src="../../../../utils/wangeditor.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../utils/jquery.min.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../utils/jquery.cookie.js"
    ></script>
    <script type="text/javascript" src="../../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../../utils/vuex.min.js"></script>
    <script
      type="text/javascript"
      src="../../../../component/elementUI/index.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../component/component.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../utils/xlsx.full.min.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../utils/xlsx.core.min.js"
    ></script>
    <script type="text/javascript" src="../../../../config/config.js"></script>
    <script
      type="text/javascript"
      src="../../../../utils/compressor.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../utils/ID_Validity.js"
    ></script>
    <script type="text/javascript" src="../../../../utils/utils.js"></script>
    <script type="text/javascript" src="../js/index.js"></script>
  </body>
</html>
